{% extends 'database/base.html' %}
{% load my_tags %}

{% block title_content %}更新信息{% endblock %}

{% block body_content %}
<h1 class="display-1">更新信息</h1>
  <form action="{% url 'delivery_database:canteen_update' id object.pk %}" method="post">
    {% csrf_token %}
    {% for item in form %}
    <div class="col-md-6 mb-3">
        {{ item|label_class:'form-label' }}
        {{ item }}
        {{ item.errors }}
    </div>
    {% endfor %}
    <button class="btn btn-primary" type="submit">保存</button>
      <a href="{% url 'delivery_database:canteen_list' id %}" class="btn btn-primary">返回</a>
    </form>
{% endblock %}